/*
 * FireComparisor.h
 *
 *  Created on: Sep 1, 2013
 *      Author: Jeff
 */

#ifndef FIRECOMPARISOR_H_
#define FIRECOMPARISOR_H_

#include "RawFileComparisor.h"
#include "FileReader.h"
#include <json/json.h>

namespace fs {

class FileComparisor: public fs::RawFileComparisor {
private:
	FileReader* rightFileReader;

	bool readJsonFromFile(const char* file, Json::Value* json);

protected:
	void init_right_input(std::string right);
	int read_right(char * buffer, int length);
	void close_right_input();

	/*void init_left_input(std::string left);
	int read_left(char * buffer, int length);
	void close_left_input();*/
public:
	FileComparisor():
		rightFileReader(NULL){};
	virtual ~FileComparisor(){};
};

} /* namespace fs */
#endif /* FIRECOMPARISOR_H_ */
